home *** CD-ROM | disk | FTP | other *** search
/ Aminet 22 / Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso / Aminet / dev / src / ConfigFileSrc.lha / ConfigFileSrc12 / RexxLibrary / LibBase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-02  |  1.1 KB  |  46 lines

  1. /*
  2. **        $PROJECT: RexxConfigFile.library
  3. **        $FILE: LibBase.h
  4. **        $DESCRIPTION: Header file for LibBase
  5. **
  6. **        (C) Copyright 1997 Marcel Karas
  7. **             All Rights Reserved.
  8. */
  9.  
  10. #ifndef LIBBASE_H
  11. #define LIBBASE_H
  12.  
  13. struct RXCFBase
  14. {
  15.     struct Library                 LibNode;
  16.  
  17.     BPTR                             Segment;
  18. };
  19.  
  20. #define RXERR_NO_MEMORY            ERR10_003
  21. #define RXERR_INVALID_MSGPKT    ERR10_010
  22. #define RXERR_FUNC_NOT_FOUND    ERR10_015
  23. #define RXERR_WRONG_NUM_ARGS    ERR10_017
  24. #define RXERR_INVALID_ARG        ERR10_018
  25.  
  26. /* Field definitions */
  27.  
  28. #define RXARG(Num)    (RxMsg->rm_Args[Num])
  29.  
  30. #define RXARG0    (RxMsg->rm_Args[0])
  31. #define RXARG1    (RxMsg->rm_Args[1])
  32. #define RXARG2    (RxMsg->rm_Args[2])
  33. #define RXARG3    (RxMsg->rm_Args[3])
  34. #define RXARG4    (RxMsg->rm_Args[4])
  35. #define RXARG5    (RxMsg->rm_Args[5])
  36.  
  37. #define RX_PFUNC_ARGS    struct RexxMsg * RxMsg, UBYTE ** ResStr, VOID *
  38. #define RX_FUNC_ARGS        struct RexxMsg * RxMsg, UBYTE ** ResStr
  39.  
  40. /* ARexx support functions */
  41.  
  42. RegCall LONG GetRxVar ( REGA0 struct Message *, REGA1 UBYTE *, REGA2 UBYTE ** );
  43. RegCall LONG SetRxVar ( REGA0 struct Message *, REGA1 UBYTE *, REGD0 UBYTE *, REGD1 ULONG );
  44.  
  45. #endif /* LIBBASE_H */
  46.